package com.ruoyi.biz.service.caseinfo.impl;

import java.util.List;

import org.apache.commons.collections.CollectionUtils;
import org.springframework.stereotype.Service;

import com.ruoyi.biz.bean.bo.CaseInfoCourtBO;
import com.ruoyi.biz.bean.vo.qo.CaseInfoCourtQO;
import com.ruoyi.biz.domain.CaseInfoCourt;
import com.ruoyi.biz.mapper.CaseInfoCourtMapper;
import com.ruoyi.biz.service.caseinfo.ICaseInfoCourtService;
import com.ruoyi.comm.crud.service.impl.BaseBQImpls;

/**
 * 案件信息 服务层处理
 * 
 * @author riverbo
 */
@Service
public class CaseInfoCourtServiceImpl extends BaseBQImpls<CaseInfoCourtMapper, CaseInfoCourt, CaseInfoCourtBO, CaseInfoCourtQO> implements ICaseInfoCourtService {

	@Override
	public int insert(Integer id, List<CaseInfoCourt> list) {
		if (!CollectionUtils.isEmpty(list)) {
			for (CaseInfoCourt u : list) {
				u.setCaseId(id);
			}
			return super.insert(list);
		} else {
			return 0;
		}
	}
	
}
